import mongoose from 'mongoose'
import Model from './model'
const categorySchema = new mongoose.Schema({
  types: {
    type: Array,
    require: true
  },
  areas: {
    type: Array,
    require: true
  },
  city: {
    type: String,
    require: true
  }
})

class categoryModel extends Model {
  constructor(connection, schema, name) {
    super(connection, schema, name)
  }

}

const category = new categoryModel(mongoose, categorySchema, 'category')

export default category
